<template>
	<view>
		<global-loading :item="8"></global-loading>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				
			}
		},
		onLoad(e) {
			this.loginToken = e.loginToken;
			this.postAccountAuthToken();
		},
		methods: {
			postAccountAuthToken(){
				this.$_request(
					"POST","/api/fresns/v1/account/auth-token",
					{
						"loginToken":this.loginToken
					},
					(res) => {
						const accountAuthToken = JSON.stringify(res.data.data.authToken);
						uni.setStorageSync('accountAuthToken', accountAuthToken);
						uni.switchTab({
							url:"/pages/my/my"
						})
					}
				)
			}
		}
	}
</script>

<style>

</style>
